package com.ly.heart.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ly.common.core.domain.BaseVo;
import lombok.Data;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 金蝶-财务模块-汇率体系对象 erp_king_base_rate_info
 *
 * @author wutao
 * @date 2024-06-22
 */
@TableName ( "erp_king_base_rate_info" )
@ApiModel ( value = "erp_king_base_rate_info对象", description = "金蝶-财务模块-汇率体系" )
@Data
public class KingBaseRateEntity extends BaseVo {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId ( value = "id", type = IdType.INPUT )
    private String id;

    /**
     * 所属公司
     */
    @ApiModelProperty ( "所属公司" )
    @TableField ( "dept_id" )
    @Excel ( name = "所属公司" )
    private String deptId;

    /**
     * 所属公司
     */
    @ApiModelProperty ( "汇率在金蝶上的Id字典，由于汇率没有编码，所以用该字段作为关联字段" )
    @TableField ( "rate_king_id" )
    @Excel ( name = "汇率KEY" )
    private String rateKingId;

    /**
     * 原币别Id,dialog走接口
     */
    @ApiModelProperty ( "原币别Id,dialog走接口" )
    @TableField ( "source_currency" )
    @Excel ( name = "原币别Id,dialog走接口" )
    private String sourceCurrency;

    /**
     * 目标币别Id,dialog走接口
     */
    @ApiModelProperty ( "目标币别Id,dialog走接口" )
    @TableField ( "target_currency" )
    @Excel ( name = "目标币别Id,dialog走接口" )
    private String targetCurrency;

    /**
     * 汇率类型,select走字典
     */
    @ApiModelProperty ( "汇率类型,select走字典" )
    @TableField ( "rate_type" )
    @Excel ( name = "汇率类型,select走字典" )
    private String rateType;

    /**
     * 直接汇率
     */
    @ApiModelProperty ( "直接汇率" )
    @TableField ( "direct_rate" )
    @Excel ( name = "直接汇率" )
    private String directRate;

    /**
     * 间接汇率
     */
    @ApiModelProperty ( "间接汇率" )
    @TableField ( "indirect_rate" )
    @Excel ( name = "间接汇率" )
    private String indirectRate;

    /**
     * 生效日期
     */
    @ApiModelProperty ( "生效日期" )
    @TableField ( "effective_time" )
    @JsonFormat ( pattern = "yyyy-MM-dd" )
    @Excel ( name = "生效日期", width = 30, dateFormat = "yyyy-MM-dd" )
    private Date effectiveTime;

    /**
     * 失效日期
     */
    @ApiModelProperty ( "失效日期" )
    @TableField ( "invalid_time" )
    @JsonFormat ( pattern = "yyyy-MM-dd" )
    @Excel ( name = "失效日期", width = 30, dateFormat = "yyyy-MM-dd" )
    private Date invalidTime;

    /**
     * 是否可用
     */
    @ApiModelProperty ( "是否推送金蝶；1：是；2：否" )
    @TableField ( "is_send" )
    @Excel ( name = "是否推送金蝶" )
    private Integer isSend;

    @ApiModelProperty("创建人")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty("更新人")
    @TableField("update_by")
    private String updateBy;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private Date updateTime;

    /**
     * 是否可用
     */
    @ApiModelProperty ( "是否可用" )
    @TableField ( "is_used" )
    @Excel ( name = "是否可用" )
    private Integer isUsed;

    @ApiModelProperty ("是否可用")
    @TableField ("is_del")
    @Excel (name = "是否可用")
    private Integer isDel;

}
